﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:VirtualRouterManager" 
	xmlns:virtualRouterManager="clr-namespace:VirtualRouterManager"
	xmlns:themes="clr-namespace:VirtualRouterManager.Themes">
	
	<Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type themes:TileView}, ResourceId=TileView}"
		TargetType="{x:Type ListView}" 
		BasedOn="{StaticResource {x:Type ListBox}}">
		<Setter Property="BorderBrush" Value="Black"></Setter>
		<Setter Property="BorderThickness" Value="0.5"></Setter>
		<Setter Property="Grid.IsSharedSizeScope" Value="True"></Setter>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<WrapPanel Width="{Binding (FrameworkElement.ActualWidth), RelativeSource={RelativeSource AncestorType=ScrollContentPresenter}}"></WrapPanel>
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>